package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.pojo.domain.ScheduleManage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ScheduleManageMapper;
import com.ruoyi.system.service.IScheduleManageService;

/**
 * 课表管理Service业务层处理
 * 
 * @author sxb
 * @date 2024-01-24
 */
@Service
public class ScheduleManageServiceImpl implements IScheduleManageService 
{
    @Autowired
    private ScheduleManageMapper scheduleManageMapper;

    /**
     * 查询课表管理
     * 
     * @param id 课表管理主键
     * @return 课表管理
     */
    @Override
    public ScheduleManage selectScheduleManageById(Long id)
    {
        return scheduleManageMapper.selectScheduleManageById(id);
    }

    /**
     * 查询课表管理列表
     * 
     * @param scheduleManage 课表管理
     * @return 课表管理
     */
    @Override
    public List<ScheduleManage> selectScheduleManageList(ScheduleManage scheduleManage)
    {
        return scheduleManageMapper.selectScheduleManageList(scheduleManage);
    }

    /**
     * 新增课表管理
     * 
     * @param scheduleManage 课表管理
     * @return 结果
     */
    @Override
    public int insertScheduleManage(ScheduleManage scheduleManage)
    {
        return scheduleManageMapper.insertScheduleManage(scheduleManage);
    }

    /**
     * 修改课表管理
     * 
     * @param scheduleManage 课表管理
     * @return 结果
     */
    @Override
    public int updateScheduleManage(ScheduleManage scheduleManage)
    {
        return scheduleManageMapper.updateScheduleManage(scheduleManage);
    }

    /**
     * 批量删除课表管理
     * 
     * @param ids 需要删除的课表管理主键
     * @return 结果
     */
    @Override
    public int deleteScheduleManageByIds(Long[] ids)
    {
        return scheduleManageMapper.deleteScheduleManageByIds(ids);
    }

    /**
     * 删除课表管理信息
     * 
     * @param id 课表管理主键
     * @return 结果
     */
    @Override
    public int deleteScheduleManageById(Long id)
    {
        return scheduleManageMapper.deleteScheduleManageById(id);
    }
}
